import request from '@/utils/request'

// 查询分行服务器列表
export function listServerConfig(query) {
  return request({
    url: '/server/config/list',
    method: 'get',
    params: query
  })
}

// 新增分行服务器配置
export function addServerConfig(data) {
  return request({
    url: '/server/config',
    method: 'post',
    data: data
  })
}


// 删除分行服务器配置
export function delServerConfig(configId) {
  return request({
    url: '/server/config/' + configId,
    method: 'delete'
  })
}


// 查询分行服务器配置
export function getServerConfig(configId) {
  return request({
    url: '/server/config/' + configId,
    method: 'get'
  })
}

// 修改任务配置配置
export function updateServerConfig(data) {
  return request({
    url: '/server/config',
    method: 'put',
    data: data
  })
}
